package com.learn.core.domain.view;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonInclude;

/**
 * @auther CodeGenerator
 * @create 2021-03-14 17:46:57
 * @describe VIEW实体类
 */
@TableName("course_enroll")
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value="CourseEnroll对象", description="VIEW")
public class CourseEnroll implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField("course_id")
    private Integer courseId;

        @ApiModelProperty(value = "课程名称")
        @TableField("course_name")
    private String courseName;

        @ApiModelProperty(value = "课程类型1必修 2选修")
        @TableField("course_type")
    private String courseType;

        @ApiModelProperty(value = "所属分类")
        @TableField("course_sort_id")
    private Integer courseSortId;

        @TableField(exist = false)
        private String courseSortName;

        @ApiModelProperty(value = "主办单位")
        @TableField("course_company")
    private String courseCompany;

        @TableField(exist = false)
        private String courseCompanyName;

        @ApiModelProperty(value = "学习主题")
        @TableField("course_theme")
    private String courseTheme;

        @TableField(exist = false)
        private String courseThemeName;

        @ApiModelProperty(value = "失效时间")
        @TableField("course_fail_time")
    private Date courseFailTime;

        @ApiModelProperty(value = "课程封面")
        @TableField("course_cover")
    private String courseCover;

        @ApiModelProperty(value = "是否推荐课程1推荐")
        @TableField("recommend_stutes")
    private String recommendStutes;

        @ApiModelProperty(value = "简介")
        @TableField("description")
    private String description;

        @ApiModelProperty(value = "发布状态0未发布1发布")
        @TableField("release_stutes")
    private String releaseStutes;

        @ApiModelProperty(value = "发布时间")
        @TableField("release_time")
    private Date releaseTime;

    @TableField("create_time")
    private Date createTime;

    @TableField("create_user")
    private String createUser;

    @TableField("update_time")
    private Date updateTime;

    @TableField("update_user")
    private String updateUser;

        @ApiModelProperty(value = "学时")
        @TableField("class_hours")
    private String classHours;

        @ApiModelProperty(value = "学习人数")
        @TableField("people")
    private Integer people;

        @ApiModelProperty(value = "教员")
        @TableField("teacher")
    private Integer teacher;

        @TableField(exist = false)
        private String teacherName;

    @TableField("enroll_id")
    private Integer enrollId;

        @ApiModelProperty(value = "状态0已购买 1学习中 2 完成学习")
        @TableField("stutes")
    private String stutes;

        @ApiModelProperty(value = "进度")
        @TableField("speed")
    private Double speed;

        @ApiModelProperty(value = "完成学时")
        @TableField("finish_hours")
    private Double finishHours;

        @ApiModelProperty(value = "成绩")
        @TableField("achievement")
    private Double achievement;

    @TableField("user_id")
    private Integer userId;

    @TableField(exist = false)
    private String userName;

    public String getCourseThemeName() {
        return courseThemeName;
    }

    public void setCourseThemeName(String courseThemeName) {
        this.courseThemeName = courseThemeName;
    }

    public String getCourseCompanyName() {
        return courseCompanyName;
    }

    public void setCourseCompanyName(String courseCompanyName) {
        this.courseCompanyName = courseCompanyName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getCourseSortName() {
        return courseSortName;
    }

    public void setCourseSortName(String courseSortName) {
        this.courseSortName = courseSortName;
    }

    public String getTeacherName() {
        return teacherName;
    }

    public void setTeacherName(String teacherName) {
        this.teacherName = teacherName;
    }

    public Integer getCourseId() {
        return courseId;
    }

    public CourseEnroll setCourseId(Integer courseId) {
        this.courseId = courseId;
        return this;
    }

    public String getCourseName() {
        return courseName;
    }

    public CourseEnroll setCourseName(String courseName) {
        this.courseName = courseName;
        return this;
    }

    public String getCourseType() {
        return courseType;
    }

    public CourseEnroll setCourseType(String courseType) {
        this.courseType = courseType;
        return this;
    }

    public Integer getCourseSortId() {
        return courseSortId;
    }

    public CourseEnroll setCourseSortId(Integer courseSortId) {
        this.courseSortId = courseSortId;
        return this;
    }

    public String getCourseCompany() {
        return courseCompany;
    }

    public CourseEnroll setCourseCompany(String courseCompany) {
        this.courseCompany = courseCompany;
        return this;
    }

    public String getCourseTheme() {
        return courseTheme;
    }

    public CourseEnroll setCourseTheme(String courseTheme) {
        this.courseTheme = courseTheme;
        return this;
    }

    public Date getCourseFailTime() {
        return courseFailTime;
    }

    public CourseEnroll setCourseFailTime(Date courseFailTime) {
        this.courseFailTime = courseFailTime;
        return this;
    }

    public String getCourseCover() {
        return courseCover;
    }

    public CourseEnroll setCourseCover(String courseCover) {
        this.courseCover = courseCover;
        return this;
    }

    public String getRecommendStutes() {
        return recommendStutes;
    }

    public CourseEnroll setRecommendStutes(String recommendStutes) {
        this.recommendStutes = recommendStutes;
        return this;
    }

    public String getDescription() {
        return description;
    }

    public CourseEnroll setDescription(String description) {
        this.description = description;
        return this;
    }

    public String getReleaseStutes() {
        return releaseStutes;
    }

    public CourseEnroll setReleaseStutes(String releaseStutes) {
        this.releaseStutes = releaseStutes;
        return this;
    }

    public Date getReleaseTime() {
        return releaseTime;
    }

    public CourseEnroll setReleaseTime(Date releaseTime) {
        this.releaseTime = releaseTime;
        return this;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public CourseEnroll setCreateTime(Date createTime) {
        this.createTime = createTime;
        return this;
    }

    public String getCreateUser() {
        return createUser;
    }

    public CourseEnroll setCreateUser(String createUser) {
        this.createUser = createUser;
        return this;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public CourseEnroll setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
        return this;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public CourseEnroll setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
        return this;
    }

    public String getClassHours() {
        return classHours;
    }

    public CourseEnroll setClassHours(String classHours) {
        this.classHours = classHours;
        return this;
    }

    public Integer getPeople() {
        return people;
    }

    public CourseEnroll setPeople(Integer people) {
        this.people = people;
        return this;
    }

    public Integer getTeacher() {
        return teacher;
    }

    public CourseEnroll setTeacher(Integer teacher) {
        this.teacher = teacher;
        return this;
    }

    public Integer getEnrollId() {
        return enrollId;
    }

    public CourseEnroll setEnrollId(Integer enrollId) {
        this.enrollId = enrollId;
        return this;
    }

    public String getStutes() {
        return stutes;
    }

    public CourseEnroll setStutes(String stutes) {
        this.stutes = stutes;
        return this;
    }

    public Double getSpeed() {
        return speed;
    }

    public CourseEnroll setSpeed(Double speed) {
        this.speed = speed;
        return this;
    }

    public Double getFinishHours() {
        return finishHours;
    }

    public CourseEnroll setFinishHours(Double finishHours) {
        this.finishHours = finishHours;
        return this;
    }

    public Double getAchievement() {
        return achievement;
    }

    public CourseEnroll setAchievement(Double achievement) {
        this.achievement = achievement;
        return this;
    }

    public Integer getUserId() {
        return userId;
    }

    public CourseEnroll setUserId(Integer userId) {
        this.userId = userId;
        return this;
    }

    @Override
    public String toString() {
        return "CourseEnroll{" +
        "courseId=" + courseId +
        ", courseName=" + courseName +
        ", courseType=" + courseType +
        ", courseSortId=" + courseSortId +
        ", courseCompany=" + courseCompany +
        ", courseTheme=" + courseTheme +
        ", courseFailTime=" + courseFailTime +
        ", courseCover=" + courseCover +
        ", recommendStutes=" + recommendStutes +
        ", description=" + description +
        ", releaseStutes=" + releaseStutes +
        ", releaseTime=" + releaseTime +
        ", createTime=" + createTime +
        ", createUser=" + createUser +
        ", updateTime=" + updateTime +
        ", updateUser=" + updateUser +
        ", classHours=" + classHours +
        ", people=" + people +
        ", teacher=" + teacher +
        ", enrollId=" + enrollId +
        ", stutes=" + stutes +
        ", speed=" + speed +
        ", finishHours=" + finishHours +
        ", achievement=" + achievement +
        ", userId=" + userId +
        "}";
    }
}